package com.ihr360.oneclick.dto;

import com.ihr360.commons.model.entity.StringId;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Index;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * @author tomtao
 */
@Entity
@Table(name = "tab_user_staff_record", indexes = {
        @Index(name = "tab_user_staff_userId_idx", columnList = "userId")})
public class UserStaffRecordDto extends StringId {

    @ManyToOne
    @JoinColumn
    private StaffRecordDto staffRecord;

    @Column(length = 40)
    private String userId;

    public StaffRecordDto getStaffRecord() {
        return staffRecord;
    }

    public void setStaffRecord(StaffRecordDto staffRecord) {
        this.staffRecord = staffRecord;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }
}
